<?php

class Model_Abstract
{
	
	/**
     * 模型要使用的连接类
     *
     * @var Connection
     */
    protected $_connection = null;
    
    /**
     * 构造函数
     */
    public function __construct()
    {
        if ($this->_connection == null) {
        	// Get the Connection
        	$this->_connection = Connection::getInstance();
        }
        
        // Model init function
        $this->init();
    }
    
    public function init()
    {

    }
}
